//
//  SearchViewController.m
//  Social_Fitness
//
//  Created by Macintosh User on 10/23/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "SearchViewController.h"


@implementation SearchViewController


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
	if (!(self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]))
        return nil;
	
    self.title = NSLocalizedString(@"Search", @"");
	
	return self;
}

- (void)viewDidLoad
{
	// Add our custom add button as the nav bar's custom right view
	UIBarButtonItem *addButton = [[[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Home", @"")
																   style:UIBarButtonItemStyleBordered
																  target:self
																  action:@selector(addAction:)] autorelease];
	self.navigationItem.rightBarButtonItem = addButton;
}

- (IBAction)addAction:(id)sender
{
	
	[self.navigationController popViewControllerAnimated:YES];
}

- (void)dealloc {
    [super dealloc];
}


@end